#include "StdAfx.h"
#include "SVarContainer.h"
#include "SToken.h"

SVarContainer::SVarContainer(int number)
{
	this->_cont = gcnew array<SVariable^>(number);
}

SVariable^ SVarContainer::CalcVar(int i, System::String ^param){
	SToken^ Param;
	Param->SetTokenString(param);
	cli::array<SToken^> ^temp = gcnew array<SToken^>(Param->GetTokenString()->Length);
	Param->Crack(temp);
	return this->_cont[i];
}